package com.example.function.project.model.one;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.context.annotation.Lazy;

import javax.persistence.*;
import java.io.Serializable;

/**
 * Description: <Project vo>. <br>
 * <p>
 * generate time:2021-7-27 14:47:24
 *
 * @author hanqf
 * @version V1.0
 */
@Data
@Entity
@Table(name = "tbl_project", schema = "csms_db")
@Lazy(value = true)
public class Project implements Serializable {
    private static final long serialVersionUID = 1L;

    /*
     * 项目id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "project_id")
    private Long id;


    /*
     * 项目代号，支持数字、字符及特殊字符，限制50字符
     */
    @Column(name = "project_name")
    private String projectName;


    /*
     * 项目阶段id
     */
    @Column(name = "project_stage_id_fk")
    private Long projectStageId;


    /*
     * 全功能开发完成时间
     */
    @Column(name = "project_completion_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private java.util.Date projectCompletionDate;


    /*
     * SOP截止时间
     */
    @Column(name = "project_sop_date")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private java.util.Date projectSopDate;


    /*
     * 创建时间
     */
    @Column(name = "project_createtime")
    private java.util.Date projectCreatetime;


    /*
     * 修改时间
     */
    @Column(name = "project_modifytime")
    private java.util.Date projectModifytime;


    /*
     * 创建人id
     */
    @Column(name = "project_user_id_fk")
    private Long projectUserId;


}



